package com.ehome.poct.core.controller;

import com.ehome.poct.core.api.dto.report.TestReportConfDTO;
import com.ehome.poct.core.api.virtual.TestReportConfService;
import com.ehome.poct.core.api.vo.report.TestReportConfVO;
import com.ehome.web.annotation.RequestLog;
import com.ehome.web.controller.AbstractBaseController;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 检测报告配置标（报告隐藏与展示）控制器
 *
 * @author muqiu
 * @Date 2022-10-25 09:40
 */
@Slf4j
@Api(tags = "检测报告配置标（报告隐藏与展示）")
@RestController
@RequestMapping("/testReportConf")
@AllArgsConstructor
public class TestReportConfController extends AbstractBaseController<TestReportConfVO, TestReportConfDTO> {

    private final TestReportConfService testReportConfService;

    @PostMapping({"/updateReportConf"})
    @RequestLog
    public void updateReportConf(@RequestBody TestReportConfDTO testReportConfDTO){
        testReportConfService.updateReportConf(testReportConfDTO);
    }
}
